Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Zoho Mail badge #466

Merged
merged 2 commits into from
Nov 25, 2023
Merged

Fix Zoho Mail badge #466

merged 2 commits into from
Nov 25, 2023

Conversation

eandersons
Copy link
Contributor

Pre-flight Checklist

Please ensure you've completed all of the following.

Description of Change

As window.zmNCenter which was used to get notifications count for the badge's indirect notifications part does not exist anymore, badge for Zoho Mail was not working.

The solution was to retrieve notifications count differently and to exclude Zoho Mail specific window properties from the if condition so the badge would be affected only partially if one of the used Zoho Mail window properties gets removed in the future. For example, if zmTopBar will be removed from window, retrieval of the direct messages count would
still work.

Additionally unread chats count was added to Zoho Mail badge's direct notifications.

As `window.zmNCenter` which was used to get notifications count for the
badge's indirect notifications part does not exist anymore, badge for
Zoho Mail was not working.
The solution was to retrieve notifications count differently and to
exclude Zoho Mail specific `window` properties from the `if` condition
so the badge would be affected only partially if one of the used Zoho
Mail `window` properties gets removed. For example, if `zmTopBar` will
be removed from `window`, retrieval of the direct messages count would
still work.
@mcmxcdev mcmxcdev merged commit 44d1197 into ferdium:main Nov 25, 2023
2 checks passed
@eandersons eandersons deleted the Fix-Zoho-Mail-badge branch November 27, 2023 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants